package com.aspose.cells;

public class TxtLoadOptions extends LoadOptions {
   private String e;
   private Encoding f = Encoding.getDefault();
   boolean d = true;
   private boolean g = false;
   private ICustomParser[] h;
   private boolean i = true;
   private boolean j = true;
   private int k = 2;

   public TxtLoadOptions() {
      this.a = 1;
      this.e = ",";
   }

   public TxtLoadOptions(int loadFormat) {
      this.a = loadFormat;
      switch(loadFormat) {
      case 0:
      case 1:
         this.e = ",";
         break;
      case 11:
         this.e = "\t";
      }

   }

   public char getSeparator() {
      return this.e != null && this.e.length() >= 1 ? this.e.charAt(0) : ',';
   }

   public void setSeparator(char value) {
      this.e = "" + value;
   }

   public String getSeparatorString() {
      return this.e;
   }

   public void setSeparatorString(String value) {
      this.e = value;
   }

   boolean c() {
      return this.e != null && this.e.length() == 1;
   }

   public Encoding getEncoding() {
      return this.f;
   }

   public void setEncoding(Encoding value) {
      this.f = value;
      this.d = false;
   }

   public boolean isMultiEncoded() {
      return this.g;
   }

   public void setMultiEncoded(boolean value) {
      this.g = value;
   }

   public ICustomParser[] getPreferredParsers() {
      return this.h;
   }

   public void setPreferredParsers(ICustomParser[] value) {
      this.h = value;
   }

   public boolean getConvertDateTimeData() {
      return this.i;
   }

   public void setConvertDateTimeData(boolean value) {
      this.i = value;
   }

   boolean d() {
      return this.j;
   }

   public int getLoadStyleStrategy() {
      return this.k;
   }

   public void setLoadStyleStrategy(int value) {
      this.k = value;
   }

   /** @deprecated */
   public boolean getKeepExactFormat() {
      return this.k == 2;
   }

   /** @deprecated */
   public void setKeepExactFormat(boolean value) {
      if (value) {
         this.k = 2;
      } else {
         this.k = 1;
      }

   }
}
